<!DOCTYPE html>
<html>
<meta http-equiv="X-UA-Compatible" content="IE=7">
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<head>
    <title>f4031</title>
    <!--引入样式和JS-->
    <link rel="stylesheet" href="../../static/Skins_/css/blue/reset.css" type="text/css" />
    <link rel="stylesheet" href="../../static/Skins_/css/blue/global.css" type="text/css" />
    <script src="../../static/loadjs1.js"></script>
    <!--提示框-->
    <script src="/static/Skins/jquery.hiAlerts.1.0/jquery.hiAlerts-min.js" type="text/javascript"></script>
    <link href="/static/Skins/jquery.hiAlerts.1.0/jquery.hiAlerts.css" rel="stylesheet" type="text/css" media="screen" />
    <script>
        $(function(){
            $(".t").removeClass("cur");
            $("#h${head}").addClass("cur");
        });
        function dosave(){
            $("#form1").submit()
        }
    </script>
    <title></title>
</head>
<body>
<!--位置条-->
<div class="crumbs"><a href="">系统</a><a href="">权限</a><span>权限分配</span></div>
<div class="main_padding">
    <div class="tool_tab">
        <ul>
            <li class="t" id="h10"><a href="/f00/userpower/list?head=10&userid=${userid}"><span>存款</span></a></li>
            <li class="t" id="h20"><a href="/f00/userpower/list?head=20&userid=${userid}"><span>银行借款</span></a></li>
            <li class="t" id="h30"><a href="/f00/userpower/list?head=30&userid=${userid}"><span>公司借款</span></a></li>
            <li class="t" id="h40"><a href="/f00/userpower/list?head=40&userid=${userid}"><span>担保</span></a></li>
            <li class="t" id="h50"><a href="/f00/userpower/list?head=50&userid=${userid}"><span>统计</span></a></li>
            <li class="t" id="h00"><a href="/f00/userpower/list?head=00&userid=${userid}"><span>系统</span></a></li>
        </ul>
    </div>

    <div class="tool_table">
        <div class="button"><a href="#"onclick="dosave()" class="button_gray"><b class="icons icheck"></b>确认</a></div>
        <div class="button"><a href="#" onclick="window.close()" class="button_gray"><b class="icons iback"></b>返回</a></div>
    </div>
    <form name="form1" id="form1" action="/f00/userpower/update?head=${head}" method="post">
        <input type="hidden" name="userid" value="${userid}">
        %if datas:
        <table class="table" style="border: 2px solid #444">
            <thead>
            <tr>
                <th width=120><input type="checkbox" class="checkbox" value="" id="checked_all" /></th>
                <th>功能名称</th>
            </tr>
            </thead>
            <tbody>
            %for data in datas:
            <tr>
                <td><input type="checkbox" class="ckb" name="F_${data.funno}" value="${data.funno}" ${data.checked}/>${data.funno}</td>
                <td>${data.funname}</td>
            </tr>
            %endfor
            </tbody>
        </table>
        %endif
    </form>
</div>
<script type="text/javascript" src="/static/skins_/js/settings.js"></script>
</body>
</html>
